package com.pomelo.chat.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.pomelo.chat.mapper.ChatMapper;
import com.pomelo.chat.domain.Chat;
import com.pomelo.chat.service.ChatService;
@Service
public class ChatServiceImpl implements ChatService{

    @Resource
    private ChatMapper chatMapper;

    @Override
    public int deleteByPrimaryKey(Integer chatId) {
        return chatMapper.deleteByPrimaryKey(chatId);
    }

    @Override
    public int insert(Chat record) {
        return chatMapper.insert(record);
    }

    @Override
    public int insertSelective(Chat record) {
        return chatMapper.insertSelective(record);
    }

    @Override
    public Chat selectByPrimaryKey(Integer chatId) {
        return chatMapper.selectByPrimaryKey(chatId);
    }

    @Override
    public int updateByPrimaryKeySelective(Chat record) {
        return chatMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Chat record) {
        return chatMapper.updateByPrimaryKey(record);
    }

}
